package com.yawn.serviceinvoker.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author yawn
 * @date 2018-05-06 14:26
 */
@FeignClient(value = "service-provider", fallback = ProvidedServiceImpl.class)
public interface ProvidedService {

    @RequestMapping(value = "/test1", method = RequestMethod.GET)
    String test1();
}
